Fixes for SSD detector algorithms and preprocessor (Panos)