Fixed controller format to query

Controller fixed