Fixed bug caused when running the callback when it's actually an object.