memory problem fixed