Fix bug with use of cut