fix put request