Fixs errors