use beginning-of-defun in the other place that you need to use it.