controller query skip, limit bugfix