fixed approval bug