Fixed crash due to false selection state.
Documentation.
Documentation.
Code comments.
Documentation.
Documentation.