bugfix on resource for firefox or opera