fix #650 Callback object modified when called using apply