Fixed clearing onDisplay callback