Fixed precondition failed message which was trying to dereference nil.