fix calcs with more than 3 arguments in dev mode