correction of weights in ghost test