fix free bytes calculation