Real Madrid endured some nervous moments but hung on to their Spanish league lead and retained their 100 per cent home record this season with a 3-1 win over a tenacious Deportivo La Coruna on Sunday .