Tried to fix viewbugs errors with not much progress