#1030 bugfix: contexts need a parent, or it may crash