fix bug caused by invocation of size function for space of swap disk