added a filter to check if divided value is invalid