fix on resouce mapping