Viewport declaration fix

Fixes two errors in the console