Varibles references were inconsistent