Fixed bug in publishing control statement