fix remember functionality