Delete 
bugfix in javascript