Fixing issue at config function