fix issues in audit crud