Fix bug... See http://stackoverflow.com/a/22271832/381724.