You are correct. I presented this code violation in a previous post. (Code Forum) I thought I would send a photo of the sub-panel. As you can see at a glance, it looks perfectly legal. (Without taking voltage readings) Once the Inspector had the service panelboard cover removed the code violation was quite obvious.