Fixed explosion code