fixing timing edit ng switch