fixed a bug in notifying unity