Bug fix: funny little error with onready event.