Fixed body sleep bug. Fixes #119. Related to #120.