Fixing the crashing issue with bogus density. Also, doge.