BZ-12026 Fixed 0/0 handling