fixed compiler error and inspector issues