fixed erroring match call