fixed a bug with match creation