Fixed problem with creating new connection every time