prototype bug fixed by rodenis