fixed a res code