update media spec file & fix bug