Fixed the incorrect paint issues with getRealLevel()