fix bug if no user