Fixed issue 578
Fixed issue 578 - corrected type usage
Merge pull request #734 from hintjens/master

Fixed issue 578