fix img parser problem