bug fix for error on line 540 for invalid :