Removed bug in error enum variable