fixed #28, game of life demo fails