fixed an issue with addexperience (lua function)