fixed a bug in decreasing the loaded items before firing the finish event