fix memory error

I'm hooh