minor cleanup, fix crystal calculation
missed in the last save