minor bugfix for client