fix bugs in alapp_steps