fixed php errors on content type add