fixes LENGTH setting