fixed sharpen bug