Fixed error

Passed the arguments one by one instead of using the tables