fixed wrong conditions to display cover picture