fixed controller issue with regular query