fixed compatibility for kinetic.js 5.1.0