fix get directives bug
Merge remote-tracking branch 'github/master'