Fix API backward compatibility with v1.0.0

Please refer to issue #30