Some bugfixes inside dropleps/tool.php