Fixed bug in Model and HAML execution