fixing status bug introduced when changing apis.
Merge pull request #459 from continuuity/feature/fix-status-bug

fixing status bug introduced when changing apis.