fix code check