fixes bugs in WP 3.8