Fixed bug with passing callbacks in an object.