Fix callback needs to be appended to end of script.