Fixed the connection's query and user attribute