fixed bug in psCreate.m