Fixed the selection header functionality.