in resampling: changed order or function calls in toggleResamplingReplacement which was causing the replacement checkbox to show the incorrect value.