Error only when tool is in workflow

I have a strange behavior of tools for merging the reads (pear, FLASH). When running as a single tool on PE dataset collection is OK. But when putting it with the same option at the beginning of workflow there is an error:

cannot find 'forward' while searching for 'library.input_collection.forward'

PS using Galaxy-docker 19.01