simulation canvas is not set to foreground when it gets drawn