Fixed memory alert bug