fix auto push detection