Fixed Error with intval