Fixed error reported by Ihor Rem <rem.wpmaster@gmail.com>