Ticket #1151: Fixing unset variable