fix issue in media library
Merge pull request #9 from RistoNiinemets/master

fix issue in media library