fixed end bug: