fix spec
force tags to empty array when tags are nil
bump version to 0.1.8.1
fix syntax error
bump version to 0.1.8.2
fix bugs