fix a bug when use get box function