Added code to prevent crash with multiple touches