GUI: Fix page switching when fading time is zero.