resolve the problem caused by RAW type