Fixing error due to strict mime checking