Fixed compatibility with new Monkey version