fixed null region issue