3.5 media gallery bug fix