Fix string callback bug