Dog replaces his master in his wifes bed