Fix a bug, which occurs when app runs on a device at first time!