Fixed a NPE bug in parsing structure keys.