[common lib] fix for bug