Bug fixes for PUT library and equals methods