fixed incorrect size check