Fixed chmod attribute

It's mode, not perm.