engine: minor code style fixes