bugfix: modified put function to store copy of Prefix slice