Fixed issue with binding value on beforeConnect function call