Make deep copy of arguments
Fix sidebar issue (fixes #6)