Fixed generate_resource location