code gardening
fix for potential ReferenceError