lambda magic bug fix