fixed issue with viewport