fixes plan validation