fix done -> end