fix bug with init of serialized app