Fix typo in variable function, also, totally fix disabled/readonly issue.

Missed a spot.