fix race keepalived condition by popping/appending from left