Fix bugs (theme and backend).

Signed-off-by: Alfred Xing <xing@lfred.info>