fix bug for get top view controller