fixed bug in publish.m