fixed bugs with viewport with more than 1 player