Fix zero condition