Fixes #5: Check that struct names are correct