Fixed errors with Filter class and units