Removes setting shadow path to nil. Performance improvements.