commit query fixing