fixing a reported length bug