Fixed error 'NullPointer' when selecting Root component