Fix code in case size is not avaible