Fix viewers per app

updating viewers did not work correctly.