fix bug that assumes a user