fix registers