Fix bean script loading.