weird nil class bug