Fix int() of none for dimensions