Fix whitespace.
Fix cast error when double clicking tree item.