Resolve NilClass error by removing instance variable identifier