Fixed Utils bug at cutExtension