fixed some bugs in the NGUI