Fixed multiple output bug