fixing check for indexed literal