Fixed #24 in that branch
Fixed shadow and fragment crashes