Fixed bug when rejecting changes