Sharpen function fix