fixed build, added empty pending check