Fixed synchronization problem in caps plugin

Subj