fixes client bug