Fixed issue #47 and normalized respect to PHP the errors raised