Fixing bug and using void(0) instead of #