fix issue with multiplication by 0