fixed random bug at app load