fix bug in testing for nil?