fixed undefined parse stuff