Removed a global variable in tape measure