Fixed problem described in rr-/malgraph/#47