Fix travis failure from undefined var