init data and fixed some bug.