Fix account function