fix for how media path was built