fixed mime type error in application controller