Fixed bug with retrieving type of arguments