Fixes sequelize/sequelize#956