fixed parse bug in safari