Bugfix; was calling callbacks as a function