fixing embedded resources