Change made for libre office

Added a change to be able to connect to libre office using the original code.