Fix size calculation for no direction