Bug fix where layouts would not be refreshed in server mode