Fix coersion from empty dict