Bug fixes: #775, #798, #807, #842, #843, #844, FTP bugs