bugfix for nil class