Bug fixes in LG1 controller