viewport fixes