bug fixed exception on the size