fixing .source= for nil class error