fix for applyWrapper