Fixed getters to workaround typescript bug. Fixed TextBox selection.