Fixed issue 578 - corrected type usage