fixing phantom error output