fixed issue with falsly issuing an error