Fix small bugs in faye sync