fix treating error