Fixed malloc bug (ptr_this was static)