fixing bug caused by last 'fix'