This is also needed for the weird viewport