Fix bug where crash would happen if the first token would be removed