fix the problem of last cell cut off in the master view