fixed crash when first piece is empty;publish 0.1.2