fixed hanging with low CP
Merge pull request #3 from dannuic/master

fixed hanging with low CP