fixed inf buf sem a bit