fixed null reference error when no options is specified in put function.