fix multiplication bug