fixing the debug
fixed the traspose operation: never trust code written at 3 AM