You're completely right. But I have copied such as it is in the book. Just now I have modified the phrase. Such as you say is also in the dictionary "мне не спится"; "ему сладко спится". Perhaps the author was thinking in "мне не спаться" ?. It is the first mistake I find in it .
Thank you.