fix buy detail edit