PSA detention quashed