Fixed a bug where the bottom bar was not correctly updated when the fragment was restored from a saved state