fixed pyhsmm reference bug