Fix warning memory