Failed bug fix. See code for information (+jshint)