Fixed incorrect variable initialization that was causing intermittent crashes.