fixing err ror