fixing bug in deployment