Fixed problems with some PS/SQL versions