Solved connect before asignment