Fixed bug sector cannot be null