[fix] correctly rebuild the client