Fixed 2 bugs in HAL and fixed classpath