fixed initializing frame from loading without button