fix the handler order bug.