fixed a small bug with prependP