Adds a bugfix from slick.js