fix on load method