Init and draw fix. Beware, you could receive nullpointer exceptions.