simple fix for switching delay