fixed bug about adding controller when reload app