fixed bad patch
fixed bad patch
Merging Bart39's bad patch fix.