fixes issue with setup firing twice