fixed bug with outputs not being set correctly after initial load