Gen spec action
fix gen callback implementation for some callbacks definitions