On credit assignment in hierarchical reinforcement learning