Fixed some sleeping