fixed flicker caused by segue after used the first time