Fix bug (Invalid cast while executing callback)