fixing bug with unassiged variable