fixed topbid undefined issue