Fix locals binding