fix for onclick