Fixed function parsing bug