fix index problem with actions