fix code end