commit query bug