Compatible with WP-debug

Small fixes to be compatible with define( 'WP_DEBUG', true );