fixed initializing app