Fixed errors

Everything should work now.