Fix segfault
Use program as entry point