Swap render/update order

fixed #7