when ui object count is zero, return null in core.js