Fixed the bug if the argument was a null value.