fix user.js send empty array instead of object