fixed bug that icpc missed