FredrichO/AkifH - Fixed bug where media gallery wouldn't refresh from server the first time it is launched.