fixed bad lengths