fix for "Notice: A non well formed numeric value encountered"