fixes #60, crashes with open:true