LCD: referenced before assignment fix