fixed bug in setup process