Fixed false memory allocation