Fixed a bug where the power for the poly kernel could reach zero or negative values during the search refinement steps.