Fixing modify after reset