Fixed bug with listeners and unchecked warnings.