Fixes errors in the update