double render fix