Fixed kernel panic problems