fix require snippet