Fixed a bug in parsing