Fixed an issue where lines could be wrongfully removed

Should we keep that print?  or was it only used for testing/debugging the code?
Maybe we should keep it but use log() ?