FIxed RuntimeLayer offsets calculation.

Summary: A fix for offsets in the runtime layer.

Test Plan: Test it.

Reviewers: Sabre070

Reviewed By: Sabre070

CC: buildbot

Differential Revision: http://code.redpointsoftware.com.au/D109