Fixed issue with restoring fragments