Initialize state path

Initialize state path if it undefined.