sample bug fixed (empty options handling)