Fixed a bug with importing resource with Firefox.