init resize on 0 time for attachment state