Fixed errors thown while compiling