another minor fix in advancedirectives script