Fixed errors from my patch.