fixed bug in separator