fixed bi to not get stuck