Fixing refine smooth bug