Fix variable name  in media api