fixing approve bug