Fixed issues preventing the component from compiling