Fixed NullPointerException bug in Parser class.