Fixed error on file_put_contents