Fixed potential filter to use powf instead of multiplication