fix a bug in splitEMBL and remove warnings