fixing a bug that occurs in deploy only