fixed bug in setup