Fix bug in bend (use numeric comparison instead of string)