fix the bug of parsing png sometimes