Fixed searching for available space