This happens when in-progress is selected as the filter status. For example, when the tax return is opened and the status of the tax return is changed. The client details / billing / timesheet panel will switch to the next client on the in-progress list rather than maintaining the initial client's data.
To avoid this, check that the client details panel shows the correct client, then go to the billing / timesheet panel to record the entry.