small fixes for auto protein