Corrected parameter passing in get and put