Fixing product function