Fixed wrong error output