fixing sleep