fix for undefined rain