fix arror with viewport and docks