Fixed check for checkbox attribute "checked"