Fix error when mount a sub app