Fix some abuses of the D-Bus API