Fix a bug with sprintf and add display https