fixed bugs in callbacks. update(dt) failing