Fixed bad find by id query