Fix Error Checker in code