Fix double render error