fix hardwired stack index