This should be fixed to $db (same on L99)