Fix for some callbacks when they have been textified by pickle