Getting rid of the errors