fix bugs to array slot