remove an error check which screwed with proper error reporting