Fix shadow rendering