fixing a bug on callback with/without constraint (tc111,tc112)