fix check code place