2 bugs detected and fixed