undefined method `main_abbr' for nil:NilClass