fixed issue with sleep not actually sleeping