fix options for post and put