Added checks for bad gene lengths