Move to use get_template_directory() from TEMPLATEPATH in some places.
Fixed fatal errors