Fixed incorrect modifications