fix coefficient query