fix rest length