increase resize bug waiting time
removed global var