Fix state definition happening before initialize
Release v1.0.1.