bug fixes for paring engine