Fixed bug in media controller