AutoForge: fixed some errors