A bug fix with type inference