fix default behavior logic