Removed save-excursion, which was not going to the beginning of buffer.