minor bug fix

Thanks [Tobias Schutter](http://wordpress.org/support/profile/tschutter).