minor bug fixes (support Wordpress version 3.9)