fixed WP 3.9 errors