Fixed PURGE_DATA bug