Parsing bug, non returning function