fixed "error with AQL in user function"