Fixed division issue