Fixed 11 issues

#538, #542, #549, #573, #581, #590, #634, #653, #681, #782, #904