Fix mapping resources