fix double after clause