bugfix rematch php