fixing mimetype issue