fix stpos function call