Why do I get only one error in the error log?