Fix critical bug in tunecraft