fix to badly formed callback