fix BG/Sprite cache and priority problems
fix problem that RTC returns the invalid values