Remove the dir argument
fix #1