Fixed preview mode for github