Fixes bug with simple sleep creation.