fixed bug
initial version