fixed notes nil bug