Fixed magic quotes bug