fix bug with start activity when loading