Fix constructor funkcionality under linux apache environment

It does not work for me under linux before.