Fixed fixAttrs in query