Fix an issue when query by booking id.