fixed some bugs in lab solver related to current direction