bug main solved