Fix array lookup on pugme script