Fixes setup and draw in examples.