liten bugfix i viewer