resolve undefined method latitude for nil:NilClass