fix setting local
fix url for media