Fixed bug in model B+ detection