fixed issue where xcbClick was called twice