Fixed various bugs with editing clients.php