Prevent double render