Fix potential bug when initializing from hash (args['hash'])