Check your script execution order. Make sure NGUI's widgets, panels and UICamera are executed after your other code.
In the latest Pro version you can also change the NGUI event code to run in the LateUpdate() instead of Update(), though I don't think that'll help you here.