refresh buffer incorrect size