Fix in usercorne similar to the one done in captiveportal, same problem in both modules