fix validate theta for new theta remainder grammar
Merge remote-tracking branch 'origin/master'