Fix mime types

Fix #781