fixed wildcarding bug