fix syndir protocol error.