Fix div -> rem