Fix size detect