fix bug cannot remove, move, or replace function that has priority parameter when added into hook, fix #32