Fix constructor funkcionality under apache environment (before it does not work for me)