new code fix in apply (for system menu)