fixing json and media link