fixed bug on deployment