Fixed a bug with wrong multiplication