Fixed class error in document layout