Fixed bug #5611: Frontend preview and simulate time is buggy