Fixes all the errors