prevent negative plank lengths