fix Passing options as object