removing invalid parameters for number directive