constraint exception fix