Fixed errors so that they do not print to screen