Fixed #2312, #2313.
Backend SHA: d77cb1a474cf86978f02ce125c18d24c97f55049