Fixing bug in bindParams