Fixes errors