fixed bugs of pd-univec's memory allocation
Fixed bugs