minor fix in postgres loader