fix #274, ensure param is a string