Fixed all bugs with default arguments uncovered by wrapping Qt