fixed lightning bug