Reading stack sizes correctly from metadata