Fixed magic_quotes bug