fixed light compile errors