Fixed bugs IV.