Fix redundant var declaration