Fixes to preload directive