[fix] do correct logic