Fixed bug appearing when uploading media