fixing bug on pg multilines command execution