Fix client viewport bug