fixing a length error