Bugs in parse method fixed

Revision:
1:130bb8aa6cf2
Parent:
0:a23e3099bb0a