fixing a bug in build task