fixed an issue with wrong type-parameter passed to getOption