Bug fix: was sending data into nowhere