Improve osc reset conditions