Fixed rename bug, missed a global val