fixed PHP fatal error