Fix proteus 0.8 API compatibility issue.