Fix wrong number calc with uneven size