fix path for media