Fixed: Side effects of function getMessageFromPoint. ToDo: Fix segmentation fault in line 243.