fixed app __init__ problem