Fixed errors caused by dumb compiler