fixed issue with command execution