fix convertible query