bugfix for forcehttps