Fix check preview size condition