Bugfix to sleep data acquisition