Fix all bugs expcept for negative result (only in program not irb)