fix spacing in query