Fixed synchronization problem in caps plugin.