controller gives a 500 on location find error