fix problems in deployment