Fixed minor bug in get option methods
Signed-off-by:José Postiga <jose.postiga@jpusoftware.com>