Fixed a bug in the parse method.