Fixed a bug when no arguments are given.