Fix for a67a7e9a108ee0e38235079da0f56be383c9528f. Simulation available for Release mode too.