bug fixed on previous commit