fix a bug of datalayer