Fixed Select layer size calculation bug