forgotten in last commit
fixed problem on missing name parameter in query