BUG: Fixed bugs in singleSession

Module dependancies were not valid in normal work environment.